package com.example.mapper;

import com.example.model.Machine;
import com.example.model.MachineDailySum;
import com.example.model.QrcodeProduct;
import org.apache.ibatis.annotations.*;

import java.time.LocalDate;
import java.util.Date;

@Mapper()    // 加注解，必须
public interface MachineDailySumMapper {

    /**
     * @Description 根据二维码查询点胶
     * @Author chengjunyu
     * @Date 2022/1/24 11:07
     * @Param * @param
     * @Return java.util.List<com.example.model.Ccddata>
     * @Exception
     */
    MachineDailySum findByItemNoAndDate(
            @Param("itemNo") String itemNo,
            @Param("productNo") String productNo,
            @Param("machineId") String machineId,
            @Param("result") String result,
            @Param("sumDate") Date currentDate
    );
   // MachineDailySum findByItemNoAndDate(String itemNo, String result, String machineId, Date currentDate);

    /**
     * @Description 新增用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:07
     * @Param sysUser
     * @Return int
     * @Exception
     */
    int insertMachineDailySum(MachineDailySum machineDailySum);

    /**
     * @Description 修改用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:07
     * @Param sysUser
     * @Return int
     * @Exception
     */
    int updateMachineDailySum(MachineDailySum machineDailySum);



}
